<?php
/**
 * Created by Rudy.
 * Author: Rudy
 * Date: 2020/11/28
 * Time: 23:18
 */

namespace App\Models\Constant;


class Constant {


    const ExFirst = 3;//写益文荟网站购买“首试”次数限制
    const ExFirstDay = 5;//写益文荟网站首试天数
    const SEE_LOG_TYPE_SEE = 1;
    const SEE_LOG_TYPE_DOWNLOAD = 2;
    const DISCOUNT = 1;//打折比例

    const PAGE_SIZE = 50;

    const FROM_GUARD = 'GUARD';
    const FROM_WEB = 'WEB';
    const FROM_ANDROID = 'ANDROID';
    const FROM_IOS = 'IOS';
    const FROM_WX_SMALL = 'WX_SMALL';
    const FROM_ZFB_SMALL = 'ZFB_SMALL';
    const FROM_CODE = 'exchangeCode';
    const FROM_CTBSC = 'ctbsc';

    const MAP_MSG = [

        //通用
        100000=>'成功！',
        100001=>'失败！',
        100002=>'未查找到有效记录',
        100004=>'缺少token！',
        100005 => 'token解析失败！',
        //登录
        200000=>'登录成功！',
        200001=>'登录失败,用户名或密码错误!',
        200002=>'安全退出！',
        200003=>'验证码失效！',
        200004=>'验证码错误！',


        //rabc
        300000=>'用户名已存在！',
        300001=>'失败！原密码不正确！',

    ];


    const SUB_TIME = '2025-01-01 00:00:01';

    const MAP_MEMBER = [
        'first'=>'首试',
        'month'=>'月卡',
        'quarter'=>'季卡',
        'year'=>'年卡',
    ];

    //休息日
    const MAP_UNWOKDAY = [
        '2024-02-10',
        '2024-02-11',
        '2024-02-12',
        '2024-02-13',
        '2024-02-14',
        '2024-02-15',
        '2024-02-16',
        '2024-02-17',

        '2024-04-04',
        '2024-04-05',
        '2024-04-06',

        '2024-05-01',
        '2024-05-02',
        '2024-05-03',
        '2024-05-04',
        '2024-05-05',

        '2024-06-08',
        '2024-06-09',
        '2024-06-10',

        '2024-09-15',
        '2024-09-16',
        '2024-09-17',

        '2024-10-01',
        '2024-10-02',
        '2024-10-03',
        '2024-10-04',
        '2024-10-05',
        '2024-10-06',
        '2024-10-07',
    ];


}
